<?php
/**
 * 类名称
 * User: 13651
 * Time: 2025/9/19 11:19
 */

namespace App\Repository;

use App\Models\LeshuaUnionConfig;

class LeshuaUnionConfigRepo extends CommonRepo
{

    /**
     * 根据配置ID获取记录
     * @param int $configId
     * @return \Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Eloquent\Model|object|null
     */
    public function getByConfigId(int $configId)
    {
        return LeshuaUnionConfig::query()->where('config_id', $configId)->first();
    }
}